package com.xgk.boot.module.core.dal.entity.order;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xgk.boot.framework.mybatis.core.dataobject.BaseDO;
import lombok.Data;

import java.util.Date;

/**
 * <p>
 * 订单标签合并表
 * </p>
 *
 * @author yfbao
 * @since 2025-06-14
 */
@Data
@TableName("order_label_merge")
public class OrderLabelMergeDO extends BaseDO {

    @TableId(value = "olm_id", type = IdType.ASSIGN_ID)
    private Long olmId;

    /**
     * 订单编号
     */
    @TableField("order_code")
    private String orderCode;

    /**
     * 原始标签路径(JSON)
     */
    @TableField("olm_origin_path")
    private String olmOriginPath;

    /**
     * 原始标签文件类型
     * png/pdf/zpl...
     */
    @TableField("olm_origin_file_type")
    private String olmOriginFileType;

    /**
     * 实际使用的标签路径
     */
    @TableField("olm_path_merge")
    private String olmPathMerge;

    /**
     * 实际使用标签文件类型
     * png/pdf/zpl...
     */
    @TableField("olm_file_type")
    private String olmFileType;

    /**
     * 处理状态
     * 0:未处理 1:已处理 2:处理异常
     */
    @TableField("olm_status")
    private Integer olmStatus;

    /**
     * 执行次数
     */
    @TableField("olm_run_count")
    private Integer olmRunCount;

    /**
     * 备注(错误信息)
     */
    @TableField("olm_note")
    private String olmNote;

    /**
     * 创建时间
     */
    @TableField("olm_create_date")
    private Date olmCreateDate;

    /**
     * 最后修改时间
     */
    @TableField("olm_update_time")
    private Date olmUpdateTime;

    @Override
    public String toString() {
        return "OrderLabelMerge{" +
        ", olmId = " + olmId +
        ", orderCode = " + orderCode +
        ", olmOriginPath = " + olmOriginPath +
        ", olmOriginFileType = " + olmOriginFileType +
        ", olmPathMerge = " + olmPathMerge +
        ", olmFileType = " + olmFileType +
        ", olmStatus = " + olmStatus +
        ", olmRunCount = " + olmRunCount +
        ", olmNote = " + olmNote +
        ", olmCreateDate = " + olmCreateDate +
        ", olmUpdateTime = " + olmUpdateTime +
        "}";
    }
}
